// 类型声明
<template>
<details open=""><summary>显示类型声明</summary><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;">/**</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> index</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> index of activated menu</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> indexPath</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> index path of activated menu</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> item</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> the selected menu item</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> routerResult</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> result returned by `vue-router` if `router` is enabled</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> */</span></span>
<span class="line"><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">type</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> MenuSelectEvent</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;"> =</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> (</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  index</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  indexPath</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">[],</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  item</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> MenuItemClicked</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  routerResult</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">?:</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> Promise</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">&lt;</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;">void</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;"> |</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> NavigationFailure</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">&gt;</span></span>
<span class="line"><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">) </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">=&gt;</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> void</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;">/**</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> index</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> index of expanded sub-menu</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> indexPath</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> index path of expanded sub-menu</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> */</span></span>
<span class="line"><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">type</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> MenuOpenEvent</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;"> =</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> (</span><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">index</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">, </span><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">indexPath</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">[]) </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">=&gt;</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> void</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;">/**</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> index</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> index of collapsed sub-menu</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> * </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">@param</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> indexPath</span><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> index path of collapsed sub-menu</span></span>
<span class="line"><span style="--shiki-light: #6A737D; --shiki-dark: #6A737D;"> */</span></span>
<span class="line"><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">type</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> MenuCloseEvent</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;"> =</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> (</span><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">index</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">, </span><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">indexPath</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">[]) </span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">=&gt;</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> void</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">interface</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> MenuItemRegistered</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  index</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  indexPath</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">[]</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  active</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> boolean</span></span>
<span class="line"><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">}</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">interface</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> MenuItemClicked</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  index</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  indexPath</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">:</span><span style="--shiki-light: #005CC5; --shiki-dark: #79B8FF;"> string</span><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">[]</span></span>
<span class="line"><span style="--shiki-light: #E36209; --shiki-dark: #FFAB70;">  route</span><span style="--shiki-light: #D73A49; --shiki-dark: #F97583;">?:</span><span style="--shiki-light: #6F42C1; --shiki-dark: #B392F0;"> RouteLocationRaw</span></span>
<span class="line"><span style="--shiki-light: #24292E; --shiki-dark: #E1E4E8;">}</span></span></code></pre></div></details>
</template>
<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>